package com.ellwood.IPGuard.infrastruction.domain.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ellwood.IPGuard.common.core.basic.EntityFactory;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @ProjectName: IPGuard-boot
 * @PackageName: com.ellwood.IPGuard.infrastruction.domain.entity
 * @ClassName: UmsSysUserEntity
 * @Description: // 用户实体
 * @Author: Ellwood
 * @CreateDate: 2024/9/25 - 下午4:30
 * @Version: V1.0.0
 */
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("ums_sys_user")
@Schema(description = "后台用户表")
public class UmsSysUserEntity extends EntityFactory {

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    @TableId(type= IdType.AUTO)
    private Long id;

    /**
     * 用户账号
     */
    @Schema(description = "用户账号")
    private String username;

    /**
     * 用户昵称
     */
    @Schema(description = "用户昵称")
    private String nickname;

    /**
     * 用户邮箱
     */
    @Schema(description = "用户邮箱")
    private String email;

    /**
     * 手机号码
     */
    @Schema(description = "手机号码")
    private String mobile;

    /**
     * 用户性别（0男 1女 2未知）
     */
    @Schema(description = "用户性别（0男 1女 2未知）")
    private Integer sex;

    /**
     * 头像地址
     */
    @Schema(description = "头像地址")
    private String avatar;

    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

}
